package com.test.springmvc;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.SessionAttributes;

@Controller
@RequestMapping("/cookieCt")

public class CookCtrl {
    @RequestMapping("/h")
    public String head(@CookieValue(value = "JSESSIONID") String JSESSIONID)
    {
        System.out.println(JSESSIONID);
        return "login";
    }
}
